#ifndef FORMALBUMMIXER_H
#define FORMALBUMMIXER_H

#include <QtGui/QWidget>
#include <QModelIndex>

#include "profile.h"

namespace Ui {
    class FormAlbumMixer;
}

class FormAlbumMixer : public QWidget {
    Q_OBJECT
public:
    FormAlbumMixer(CProfile *pProfile, QWidget *parent = 0);
    ~FormAlbumMixer();

    void actionDelete();
    void actionSave();
    void actionLoad();
    void doReshape();

    bool isModified() const;

protected:
    void changeEvent(QEvent *e);

private:
    bool m_bIsModified;
    CProfile *m_pProfile;
    int m_nFilesCacheSize;
    QStringList m_strlistFilesCache;
    Ui::FormAlbumMixer *m_ui;
    void Log(QString strLogData) const;
    QString ExtractOneRandomFilename();

private slots:
    void on_pushButtonDstDir_clicked();
    void on_pushButtonSrcDir_clicked();
    void on_pushButtonPreview_clicked();
    void on_pushButtonProcess_clicked();
    void on_listWidgetFiles_doubleClicked(QModelIndex index);
    void on_listWidgetFiles_currentRowChanged(int currentRow);
};

#endif // FORMALBUMMIXER_H
